import Mock from 'mockjs'

var apiSchoolBookEditorInfo = Mock.mock({
    url: 'api/school/bookEditorInfo',
    enable: true,
    data: {
        code: 200,
        msg: "成功",
        data: {
            bookId: 111,
            bookName: '高新一中小本题库',
            dir: [{
                "id": 73,
                "dirId": 14,
                "dirPid": 0,
                "text": "第一章 数与式",
                "pageIds": "8",
                "child": [
                    {
                        "id": 75,
                        "dirId": 25,
                        "dirPid": 14,
                        "text": "第一节 实数",
                        "pageIds": "8",
                        "child": []
                    },
                    {
                        "id": 78,
                        "dirId": 26,
                        "dirPid": 14,
                        "text": "第二节 整式及因式分解",
                        "pageIds": "12",
                        "child": []
                    },
                    {
                        "id": 79,
                        "dirId": 27,
                        "dirPid": 14,
                        "text": "第三节 分式",
                        "pageIds": "14",
                        "child": []
                    }
                ]
            },
            {
                "id": 76,
                "dirId": 21,
                "dirPid": 0,
                "text": "第二章 方程（组）与不等式（组）",
                "pageIds": "16",
                "child": [
                    {
                        "id": 74,
                        "dirId": 23,
                        "dirPid": 21,
                        "text": "第一节 一次方程（组）",
                        "pageIds": "16",
                        "child": []
                    },
                    {
                        "id": 77,
                        "dirId": 24,
                        "dirPid": 21,
                        "text": "第二节 一元二次方程",
                        "pageIds": "18",
                        "child": []
                    },
                    {
                        "id": 80,
                        "dirId": 28,
                        "dirPid": 21,
                        "text": "第三节 分式方程",
                        "pageIds": "20",
                        "child": []
                    },
                    {
                        "id": 81,
                        "dirId": 29,
                        "dirPid": 21,
                        "text": "第四节 一次不等式（组）",
                        "pageIds": "22",
                        "child": []
                    }
                ]
            }],
            page: [
                {
                    pageId: 1,
                    pageNum: 1
                },
                {
                    pageId: 2,
                    pageNum: 2
                },
                {
                    pageId: 3,
                    pageNum: 3
                },
                {
                    pageId: 4,
                    pageNum: 4
                },
                {
                    pageId: 5,
                    pageNum: 5
                },
                {
                    pageId: 6,
                    pageNum: 6
                }
            ]
        }
    },
}
)


export default [
    apiSchoolBookEditorInfo
]